package com.wxy.gks.springbootprojectday22practice.service.serviceImpl;

import com.wxy.gks.springbootprojectday22practice.bean.User;
import com.wxy.gks.springbootprojectday22practice.dao.UserMapp;
import com.wxy.gks.springbootprojectday22practice.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapp userMapp;


    @Override
    public User findUserByUsername(String name) {
        User user = userMapp.findUserByUsername(name);



        return user;
    }

    @Override
    public User findUserByNameAndPass(User user) {
        User resutUser = userMapp.findUserByNameAndPass(user);


        return resutUser;
    }
}
